innerText

abstract fun innerText(): String

Returns a string with the text content of the element and its descendants. This method can return an empty string if the element does not have a content.

Throws

when this instance is closed


abstract fun innerText(innerText: String): Boolean

Replaces the text content of the element with the given innerText value. Assigning a new value to the inner text will destroy any descendants of the element.

Return

true when the text content of the element was successfully replaced

Parameters

innerText

a new text content of the element

Throws

when this instance is closed